﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Program
    {
      public struct PersonStruct
        {
            public string name;
            public int tel;
            public string address;

            public PersonStruct(string name,int tel,string address)
            {
                this.name = name;
                this.tel = tel;
                this.address = address;
            }
        }
        static void Main(string[] args)
        {
            PersonStruct p1 = new PersonStruct();
            p1.name = "小韦";
            p1.tel =1557853212;
            p1.address = "福建省闽大";

            PersonStruct p2 = new PersonStruct();
            p2 = p1;
            p2.name = "小东";
            Console.WriteLine("姓名：{0},电话：{1}，地址：{2}",p1.name,p1.tel,p1.address);

            Console.WriteLine("姓名：{0},电话：{1}，地址：{2}",p2.name,p2.tel,p2.address);

            PersonClass p3 = new PersonClass("小鑫",1557853201,"福建龙岩");
            PersonClass p4 = new PersonClass(p3.name, p3.tel, p3.address);
            p4.name = "小宝";
            Console.WriteLine("姓名：{0},电话：{1}，地址：{2}", p3.name, p3.tel, p3.address);
            Console.WriteLine("姓名：{0},电话：{1}，地址：{2}", p4.name, p4.tel, p4.address);

        }
    }
}
